#3-1.py
import os

def ls(filepath):
	files = os.listdir(filepath)
	dirC = 0
	fileC = 0
	for f in files:
		print(f)
		if os.path.isdir(filepath + "/" + f):
			dirC += 1
		elif os.path.isfile(filepath + "/" + f):
			fileC += 1
	print("there are " + str(dirC) + " directories and "
			 + str(fileC) + " files\n")

ls(input("input your path\n"))